package chart;

/**
 * @author yzh
 * @data 2021/3/25 10:55
 */
public class TreeNode<V> {
    public V val;
    public TreeNode<V> left;
    public TreeNode<V> right;

    public TreeNode() {
        this(null, null, null);
    }

    public TreeNode(V val) {
        this(val, null, null);
    }

    public TreeNode(V val, TreeNode<V> left, TreeNode<V> right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}
